package com.yyf.blogapi.service.impl;

import com.yyf.blogapi.po.ArticleBody;
import com.yyf.blogapi.mapper.ArticleBodyMapper;
import com.yyf.blogapi.service.IArticleBodyService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yyf
 * @since 2021-08-16
 */
@Service
public class ArticleBodyServiceImpl extends ServiceImpl<ArticleBodyMapper, ArticleBody> implements IArticleBodyService {
    @Resource
    ArticleBodyMapper articleBodyMapper;

    @Override
    public ArticleBody getArticleBodyById(Long bodyId) {
        return articleBodyMapper.selectById(bodyId);
    }
}
